package com.ztej.query.parser;

import com.ztej.query.model.Contact;

import java.io.InputStream;
import java.util.List;

/**
 * Created by mac_xhq on 2017/1/16.
 */

public interface ContactParser {

    public String serialize(List<Contact> books) throws Exception;
    /**
     * 解析输入流 得到Book对象集合
     * @param is
     * @return
     * @throws Exception
     */
    public List<Contact> parse(InputStream is) throws Exception;

    /**
     * 序列化Book对象集合 得到XML形式的字符串
     * @param books
     * @return
     * @throws Exception
     */

}
